
<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<c:set var="cp" value="${pageContext.request.contextPath}"/>

<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>资料修改</title>
  <style>
    #regUI{margin:0 auto;width:200px;position: relative;top:200px;}
    body{
      background: url("../img/14.jpg") no-repeat;
      background-size: 1920px;
    }
  </style>
</head>
<body>
<div class="container-fluid" id="regUI">
  <h1 class="title center">修改个人信息</h1>
  <br/>
  <div class="col-sm-offset-2 col-md-offest-2">
    <div class="form-horizontal">
      <!-- 表单输入 -->
      <!--这里进入修改controller-->
      <form action="/user/update.do">
        <div class="form-group">
          <label for="UserName" class="col-sm-2 col-md-2 control-label">用户名</label>
          <div class="col-sm-6 col-md-6">
            <input type="text" class="form-control" name="username" id="UserName" value="${user.username}">
          </div>
        </div>
        <div class="form-group">
          <label for="Password" class="col-sm-2 col-md-2 control-label">密码</label>
          <div class="col-sm-6 col-md-6">
            <input type="text" class="form-control" name="password" id="Password"
                   value="${user.password}"/>
          </div>
        </div>

        <div class="form-group">
          <label for="Phone" class="col-sm-2 col-md-2 control-label">手机号码</label>
          <div class="col-sm-6 col-md-6">
            <input type="text" class="form-control" name="phone" id="Phone" value="${user.phone}"/>
          </div>
        </div>

        <div class="form-group">
          <label for="Address" class="col-sm-2 col-md-2 control-label">地址</label>
          <div class="col-sm-6 col-md-6">
            <input type="text" class="form-control" name="address" id="Address"
                   value="${user.address}"/>
          </div>
        </div>

        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-6">
            <button class="btn btn-lg btn-primary btn-block" type="submit">确认修改
            </button>
          </div>
        </div>
      </form>
    </div>

    <br/>
  </div>
</div>
</body>
</html>
